<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns:yui="http://yuilibrary.com/rdf/1.0/yui.rdf#">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<title>API: recordset   recordset-indexer.js  (YUI Library)</title>

	<link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css" />
	<link rel="stylesheet" type="text/css" href="assets/api.css" />

    <script type="text/javascript" src="assets/api-js"></script>
    <script type="text/javascript" src="assets/ac-js"></script>
</head>

<body id="yahoo-com">

<div id="doc3" class="yui-t2">
	<div id="hd">
        <h1><a href="http://developer.yahoo.com/yui/" title="Yahoo! UI Library">Yahoo! UI Library</a></h1>
        <h3>recordset&nbsp; <span class="subtitle">3.3.0</span></h3>
        <a href="./index.html" title="Yahoo! UI Library">Yahoo! UI Library</a> 
            &gt; <a href="./module_recordset.html" title="recordset">recordset</a>
                
                 &gt; recordset-indexer.js (source view) 
        <form onsubmit="return false">
            <div id="propertysearch">
                Search: <input autocomplete="off" id="searchinput" />
                <div id="searchresults">
                    &nbsp;
                </div>
            </div>
        </form>
	</div>

	<div id="bd">
		<div id="yui-main">
			<div class="yui-b">
            <form action="#" name="yui-classopts-form" method="get" id="yui-classopts-form">
                <fieldset>
                    <legend>Filters</legend>
                <span class="classopts"><input type="checkbox" name="show_private" id="show_private" /> <label for="show_private">Show Private</label></span>
                <span class="classopts"><input type="checkbox" name="show_protected" id="show_protected" /> <label for="show_protected">Show Protected</label></span>
                <span class="classopts"><input type="checkbox" name="show_deprecated" id="show_deprecated" /> <label for="show_deprecated">Show Deprecated</label></span>
                </fieldset>
            </form>

                    <div id="srcout">
                        <style>
                            #doc3 .classopts { display:none; }
                        </style>
                        <div class="highlight"><pre><span class="cm">/**</span>
<span class="cm"> * Provides the ability to store multiple custom hash tables referencing records in the recordset.</span>
<span class="cm"> * @module recordset</span>
<span class="cm"> * @submodule recordset-indexer</span>
<span class="cm"> */</span>
<span class="cm">/**</span>
<span class="cm"> * Plugin that provides the ability to store multiple custom hash tables referencing records in the recordset.</span>
<span class="cm"> * This utility does not support any collision handling. New hash table entries with a used key overwrite older ones.</span>
<span class="cm"> * @class RecordsetIndexer</span>
<span class="cm"> */</span>
<span class="kd">function</span> <span class="nx">RecordsetIndexer</span><span class="p">(</span><span class="nx">config</span><span class="p">)</span> <span class="p">{</span>
    <span class="nx">RecordsetIndexer</span><span class="p">.</span><span class="nx">superclass</span><span class="p">.</span><span class="nx">constructor</span><span class="p">.</span><span class="nx">apply</span><span class="p">(</span><span class="k">this</span><span class="p">,</span> <span class="nx">arguments</span><span class="p">);</span>
<span class="p">}</span>

<span class="nx">Y</span><span class="p">.</span><span class="nx">mix</span><span class="p">(</span><span class="nx">RecordsetIndexer</span><span class="p">,</span> <span class="p">{</span>
    <span class="nx">NS</span><span class="o">:</span> <span class="s2">&quot;indexer&quot;</span><span class="p">,</span>

    <span class="nx">NAME</span><span class="o">:</span> <span class="s2">&quot;recordsetIndexer&quot;</span><span class="p">,</span>

    <span class="nx">ATTRS</span><span class="o">:</span> <span class="p">{</span>
        <span class="cm">/**</span>
<span class="cm">	    * @description Collection of all the hashTables created by the plugin. </span>
<span class="cm">		* The individual tables can be accessed by the key they are hashing against. </span>
<span class="cm">	    *</span>
<span class="cm">	    * @attribute hashTables</span>
<span class="cm">	    * @public</span>
<span class="cm">	    * @type object</span>
<span class="cm">	    */</span>
        <span class="nx">hashTables</span><span class="o">:</span> <span class="p">{</span>
            <span class="nx">value</span><span class="o">:</span> <span class="p">{</span>

            <span class="p">}</span>
        <span class="p">},</span>


        <span class="nx">keys</span><span class="o">:</span> <span class="p">{</span>
            <span class="nx">value</span><span class="o">:</span> <span class="p">{</span>

            <span class="p">}</span>
        <span class="p">}</span>
    <span class="p">}</span>
<span class="p">});</span>


<span class="nx">Y</span><span class="p">.</span><span class="nx">extend</span><span class="p">(</span><span class="nx">RecordsetIndexer</span><span class="p">,</span> <span class="nx">Y</span><span class="p">.</span><span class="nx">Plugin</span><span class="p">.</span><span class="nx">Base</span><span class="p">,</span> <span class="p">{</span>

    <span class="nx">initializer</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">config</span><span class="p">)</span> <span class="p">{</span>
        <span class="kd">var</span> <span class="nx">host</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;host&#39;</span><span class="p">);</span>

        <span class="c1">//setup listeners on recordset events</span>
        <span class="k">this</span><span class="p">.</span><span class="nx">onHostEvent</span><span class="p">(</span><span class="s1">&#39;add&#39;</span><span class="p">,</span> <span class="nx">Y</span><span class="p">.</span><span class="nx">bind</span><span class="p">(</span><span class="s2">&quot;_defAddHash&quot;</span><span class="p">,</span> <span class="k">this</span><span class="p">),</span> <span class="nx">host</span><span class="p">);</span>
        <span class="k">this</span><span class="p">.</span><span class="nx">onHostEvent</span><span class="p">(</span><span class="s1">&#39;remove&#39;</span><span class="p">,</span> <span class="nx">Y</span><span class="p">.</span><span class="nx">bind</span><span class="p">(</span><span class="s1">&#39;_defRemoveHash&#39;</span><span class="p">,</span> <span class="k">this</span><span class="p">),</span> <span class="nx">host</span><span class="p">);</span>
        <span class="k">this</span><span class="p">.</span><span class="nx">onHostEvent</span><span class="p">(</span><span class="s1">&#39;update&#39;</span><span class="p">,</span> <span class="nx">Y</span><span class="p">.</span><span class="nx">bind</span><span class="p">(</span><span class="s1">&#39;_defUpdateHash&#39;</span><span class="p">,</span> <span class="k">this</span><span class="p">),</span> <span class="nx">host</span><span class="p">);</span>

    <span class="p">},</span>

    <span class="nx">destructor</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">config</span><span class="p">)</span> <span class="p">{</span>
    
    <span class="p">},</span>


    <span class="cm">/**</span>
<span class="cm">     * @description Setup the hash table for a given key with all existing records in the recordset</span>
<span class="cm">     *</span>
<span class="cm">     * @method _setHashTable</span>
<span class="cm">     * @param key {string} A key to hash by.</span>
<span class="cm">	 * @return obj {object} The created hash table</span>
<span class="cm">     * @private</span>
<span class="cm">     */</span>
    <span class="nx">_setHashTable</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">key</span><span class="p">)</span> <span class="p">{</span>
        <span class="kd">var</span> <span class="nx">host</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;host&#39;</span><span class="p">),</span>
        <span class="nx">obj</span> <span class="o">=</span> <span class="p">{},</span>
        <span class="nx">i</span> <span class="o">=</span> <span class="mi">0</span><span class="p">,</span>
        <span class="nx">len</span> <span class="o">=</span> <span class="nx">host</span><span class="p">.</span><span class="nx">getLength</span><span class="p">();</span>

        <span class="k">for</span> <span class="p">(;</span> <span class="nx">i</span> <span class="o">&lt;</span> <span class="nx">len</span><span class="p">;</span> <span class="nx">i</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span>
            <span class="nx">obj</span><span class="p">[</span><span class="nx">host</span><span class="p">.</span><span class="nx">_items</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">getValue</span><span class="p">(</span><span class="nx">key</span><span class="p">)]</span> <span class="o">=</span> <span class="nx">host</span><span class="p">.</span><span class="nx">_items</span><span class="p">[</span><span class="nx">i</span><span class="p">];</span>
        <span class="p">}</span>
        <span class="k">return</span> <span class="nx">obj</span><span class="p">;</span>
    <span class="p">},</span>

    <span class="c1">//---------------------------------------------</span>
    <span class="c1">// Syncing Methods</span>
    <span class="c1">//---------------------------------------------</span>

    <span class="cm">/**</span>
<span class="cm">     * @description Updates all hash tables when a record is added to the recordset</span>
<span class="cm">	 *</span>
<span class="cm">     * @method _defAddHash</span>
<span class="cm">     * @private</span>
<span class="cm">     */</span>
    <span class="nx">_defAddHash</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">e</span><span class="p">)</span> <span class="p">{</span>
        <span class="kd">var</span> <span class="nx">tbl</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;hashTables&#39;</span><span class="p">);</span>


        <span class="c1">//Go through every hashtable that is stored.</span>
        <span class="c1">//in each hashtable, look to see if the key is represented in the object being added.</span>
        <span class="nx">Y</span><span class="p">.</span><span class="nx">each</span><span class="p">(</span><span class="nx">tbl</span><span class="p">,</span>
        <span class="kd">function</span><span class="p">(</span><span class="nx">v</span><span class="p">,</span> <span class="nx">key</span><span class="p">)</span> <span class="p">{</span>
            <span class="nx">Y</span><span class="p">.</span><span class="nx">each</span><span class="p">(</span><span class="nx">e</span><span class="p">.</span><span class="nx">added</span> <span class="o">||</span> <span class="nx">e</span><span class="p">.</span><span class="nx">updated</span><span class="p">,</span>
            <span class="kd">function</span><span class="p">(</span><span class="nx">o</span><span class="p">)</span> <span class="p">{</span>
                <span class="c1">//if the object being added has a key which is being stored by hashtable v, add it into the table.</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">o</span><span class="p">.</span><span class="nx">getValue</span><span class="p">(</span><span class="nx">key</span><span class="p">))</span> <span class="p">{</span>
                    <span class="nx">v</span><span class="p">[</span><span class="nx">o</span><span class="p">.</span><span class="nx">getValue</span><span class="p">(</span><span class="nx">key</span><span class="p">)]</span> <span class="o">=</span> <span class="nx">o</span><span class="p">;</span>
                <span class="p">}</span>
            <span class="p">});</span>
        <span class="p">});</span>

    <span class="p">},</span>

    <span class="cm">/**</span>
<span class="cm">     * @description Updates all hash tables when a record is removed from the recordset</span>
<span class="cm">	 *</span>
<span class="cm">     * @method _defRemoveHash</span>
<span class="cm">     * @private</span>
<span class="cm">     */</span>
    <span class="nx">_defRemoveHash</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">e</span><span class="p">)</span> <span class="p">{</span>
        <span class="kd">var</span> <span class="nx">tbl</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;hashTables&#39;</span><span class="p">),</span>
        <span class="nx">reckey</span><span class="p">;</span>

        <span class="c1">//Go through every hashtable that is stored.</span>
        <span class="c1">//in each hashtable, look to see if the key is represented in the object being deleted.</span>
        <span class="nx">Y</span><span class="p">.</span><span class="nx">each</span><span class="p">(</span><span class="nx">tbl</span><span class="p">,</span>
        <span class="kd">function</span><span class="p">(</span><span class="nx">v</span><span class="p">,</span> <span class="nx">key</span><span class="p">)</span> <span class="p">{</span>
            <span class="nx">Y</span><span class="p">.</span><span class="nx">each</span><span class="p">(</span><span class="nx">e</span><span class="p">.</span><span class="nx">removed</span> <span class="o">||</span> <span class="nx">e</span><span class="p">.</span><span class="nx">overwritten</span><span class="p">,</span>
            <span class="kd">function</span><span class="p">(</span><span class="nx">o</span><span class="p">)</span> <span class="p">{</span>
                <span class="nx">reckey</span> <span class="o">=</span> <span class="nx">o</span><span class="p">.</span><span class="nx">getValue</span><span class="p">(</span><span class="nx">key</span><span class="p">);</span>

                <span class="c1">//if the hashtable has a key storing a record, and the key and the record both match the record being deleted, delete that row from the hashtable</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">reckey</span> <span class="o">&amp;&amp;</span> <span class="nx">v</span><span class="p">[</span><span class="nx">reckey</span><span class="p">]</span> <span class="o">===</span> <span class="nx">o</span><span class="p">)</span> <span class="p">{</span>
                    <span class="k">delete</span> <span class="nx">v</span><span class="p">[</span><span class="nx">reckey</span><span class="p">];</span>
                <span class="p">}</span>
            <span class="p">});</span>
        <span class="p">});</span>
    <span class="p">},</span>

    <span class="cm">/**</span>
<span class="cm">     * @description Updates all hash tables when the recordset is updated (a combination of add and remove)</span>
<span class="cm">	 *</span>
<span class="cm">     * @method _defUpdateHash</span>
<span class="cm">     * @private</span>
<span class="cm">     */</span>
    <span class="nx">_defUpdateHash</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">e</span><span class="p">)</span> <span class="p">{</span>

        <span class="c1">//TODO: It will be more performant to create a new method rather than using _defAddHash, _defRemoveHash, due to the number of loops. See commented code.</span>
        <span class="nx">e</span><span class="p">.</span><span class="nx">added</span> <span class="o">=</span> <span class="nx">e</span><span class="p">.</span><span class="nx">updated</span><span class="p">;</span>
        <span class="nx">e</span><span class="p">.</span><span class="nx">removed</span> <span class="o">=</span> <span class="nx">e</span><span class="p">.</span><span class="nx">overwritten</span><span class="p">;</span>
        <span class="k">this</span><span class="p">.</span><span class="nx">_defAddHash</span><span class="p">(</span><span class="nx">e</span><span class="p">);</span>
        <span class="k">this</span><span class="p">.</span><span class="nx">_defRemoveHash</span><span class="p">(</span><span class="nx">e</span><span class="p">);</span>

        <span class="cm">/*</span>
<span class="cm">					var tbl = this.get(&#39;hashTables&#39;), reckey;</span>
<span class="cm">					</span>
<span class="cm">					Y.each(tbl, function(v, key) {</span>
<span class="cm">						Y.each(e.updated, function(o, i) {</span>
<span class="cm">							</span>
<span class="cm">							//delete record from hashtable if it has been overwritten</span>
<span class="cm">							reckey = o.getValue(key);</span>
<span class="cm">							</span>
<span class="cm">							if (reckey) {</span>
<span class="cm">								v[reckey] = o;</span>
<span class="cm">							}</span>
<span class="cm">							</span>
<span class="cm">							//the undefined case is if more records are updated than currently exist in the recordset. </span>
<span class="cm">							if (e.overwritten[i] &amp;&amp; (v[e.overwritten[i].getValue(key)] === e.overwritten[i])) {</span>
<span class="cm">								delete v[e.overwritten[i].getValue(key)];</span>
<span class="cm">							}</span>
<span class="cm">							</span>
<span class="cm">							// if (v[reckey] === o) {</span>
<span class="cm">							// 	delete v[reckey];</span>
<span class="cm">							// }</span>
<span class="cm">							// 				</span>
<span class="cm">							// //add the new updated record if it has a key that corresponds to a hash table</span>
<span class="cm">							// if (o.getValue(key)) {</span>
<span class="cm">							// 	v[o.getValue(key)] = o;</span>
<span class="cm">							// }</span>
<span class="cm">															</span>
<span class="cm">						});</span>
<span class="cm">					});</span>
<span class="cm">			*/</span>
    <span class="p">},</span>

    <span class="c1">//---------------------------------------------</span>
    <span class="c1">// Public Methods</span>
    <span class="c1">//---------------------------------------------</span>

    <span class="cm">/**</span>
<span class="cm">     * @description Creates a new hash table.</span>
<span class="cm">	 *</span>
<span class="cm">     * @method createTable</span>
<span class="cm">     * @param key {string} A key to hash by.</span>
<span class="cm">	 * @return tbls[key] {object} The created hash table</span>
<span class="cm">     * @public</span>
<span class="cm">     */</span>
    <span class="nx">createTable</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">key</span><span class="p">)</span> <span class="p">{</span>
        <span class="kd">var</span> <span class="nx">tbls</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;hashTables&#39;</span><span class="p">);</span>
        <span class="nx">tbls</span><span class="p">[</span><span class="nx">key</span><span class="p">]</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_setHashTable</span><span class="p">(</span><span class="nx">key</span><span class="p">);</span>
        <span class="k">this</span><span class="p">.</span><span class="nx">set</span><span class="p">(</span><span class="s1">&#39;hashTables&#39;</span><span class="p">,</span> <span class="nx">tbls</span><span class="p">);</span>

        <span class="k">return</span> <span class="nx">tbls</span><span class="p">[</span><span class="nx">key</span><span class="p">];</span>
    <span class="p">},</span>


    <span class="cm">/**</span>
<span class="cm">     * @description Get a hash table that hashes records by a given key.</span>
<span class="cm">	 *</span>
<span class="cm">	 * @method getTable</span>
<span class="cm">     * @param key {string} A key to hash by.</span>
<span class="cm">	 * @return table {object} The created hash table</span>
<span class="cm">     * @public</span>
<span class="cm">     */</span>
    <span class="nx">getTable</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">key</span><span class="p">)</span> <span class="p">{</span>
        <span class="k">return</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;hashTables&#39;</span><span class="p">)[</span><span class="nx">key</span><span class="p">];</span>
    <span class="p">}</span>





<span class="p">});</span>
<span class="nx">Y</span><span class="p">.</span><span class="nx">namespace</span><span class="p">(</span><span class="s2">&quot;Plugin&quot;</span><span class="p">).</span><span class="nx">RecordsetIndexer</span> <span class="o">=</span> <span class="nx">RecordsetIndexer</span><span class="p">;</span>
</pre></div>

                    </div>
			</div>
		</div>
		<div class="yui-b">
            <div class="nav">

                    <div id="moduleList" class="module">
                        <h4>Modules</h4>
                        <ul class="content">
                                <li class=""><a href="module_align-plugin.html" title="align-plugin">align-plugin</a></li>
                                <li class=""><a href="module_anim.html" title="anim">anim</a></li>
                                <li class=""><a href="module_arraysort.html" title="arraysort">arraysort</a></li>
                                <li class=""><a href="module_async-queue.html" title="async-queue">async-queue</a></li>
                                <li class=""><a href="module_attribute.html" title="attribute">attribute</a></li>
                                <li class=""><a href="module_autocomplete.html" title="autocomplete">autocomplete</a></li>
                                <li class=""><a href="module_base.html" title="base">base</a></li>
                                <li class=""><a href="module_cache.html" title="cache">cache</a></li>
                                <li class=""><a href="module_charts.html" title="charts">charts</a></li>
                                <li class=""><a href="module_classnamemanager.html" title="classnamemanager">classnamemanager</a></li>
                                <li class=""><a href="module_collection.html" title="collection">collection</a></li>
                                <li class=""><a href="module_console.html" title="console">console</a></li>
                                <li class=""><a href="module_console-filters.html" title="console-filters">console-filters</a></li>
                                <li class=""><a href="module_cookie.html" title="cookie">cookie</a></li>
                                <li class=""><a href="module_dataschema.html" title="dataschema">dataschema</a></li>
                                <li class=""><a href="module_datasource.html" title="datasource">datasource</a></li>
                                <li class=""><a href="module_datatable.html" title="datatable">datatable</a></li>
                                <li class=""><a href="module_datatype.html" title="datatype">datatype</a></li>
                                <li class=""><a href="module_dd.html" title="dd">dd</a></li>
                                <li class=""><a href="module_dial.html" title="dial">dial</a></li>
                                <li class=""><a href="module_dom.html" title="dom">dom</a></li>
                                <li class=""><a href="module_dump.html" title="dump">dump</a></li>
                                <li class=""><a href="module_editor.html" title="editor">editor</a></li>
                                <li class=""><a href="module_escape.html" title="escape">escape</a></li>
                                <li class=""><a href="module_event.html" title="event">event</a></li>
                                <li class=""><a href="module_event-custom.html" title="event-custom">event-custom</a></li>
                                <li class=""><a href="module_event-gestures.html" title="event-gestures">event-gestures</a></li>
                                <li class=""><a href="module_event-simulate.html" title="event-simulate">event-simulate</a></li>
                                <li class=""><a href="module_event-touch.html" title="event-touch">event-touch</a></li>
                                <li class=""><a href="module_event-valuechange.html" title="event-valuechange">event-valuechange</a></li>
                                <li class=""><a href="module_highlight.html" title="highlight">highlight</a></li>
                                <li class=""><a href="module_history.html" title="history">history</a></li>
                                <li class=""><a href="module_history-deprecated.html" title="history-deprecated">history-deprecated</a></li>
                                <li class=""><a href="module_imageloader.html" title="imageloader">imageloader</a></li>
                                <li class=""><a href="module_intl.html" title="intl">intl</a></li>
                                <li class=""><a href="module_io.html" title="io">io</a></li>
                                <li class=""><a href="module_json.html" title="json">json</a></li>
                                <li class=""><a href="module_jsonp.html" title="jsonp">jsonp</a></li>
                                <li class=""><a href="module_loader.html" title="loader">loader</a></li>
                                <li class=""><a href="module_node.html" title="node">node</a></li>
                                <li class=""><a href="module_node-flick.html" title="node-flick">node-flick</a></li>
                                <li class=""><a href="module_node-focusmanager.html" title="node-focusmanager">node-focusmanager</a></li>
                                <li class=""><a href="module_node-menunav.html" title="node-menunav">node-menunav</a></li>
                                <li class=""><a href="module_oop.html" title="oop">oop</a></li>
                                <li class=""><a href="module_overlay.html" title="overlay">overlay</a></li>
                                <li class=""><a href="module_plugin.html" title="plugin">plugin</a></li>
                                <li class=""><a href="module_pluginhost.html" title="pluginhost">pluginhost</a></li>
                                <li class=""><a href="module_pluginhost-base.html" title="pluginhost-base">pluginhost-base</a></li>
                                <li class=""><a href="module_profiler.html" title="profiler">profiler</a></li>
                                <li class=""><a href="module_querystring.html" title="querystring">querystring</a></li>
                                <li class=""><a href="module_queue-promote.html" title="queue-promote">queue-promote</a></li>
                                <li class="selected"><a href="module_recordset.html" title="recordset">recordset</a></li>
                                <li class=""><a href="module_resize.html" title="resize">resize</a></li>
                                <li class=""><a href="module_scrollview.html" title="scrollview">scrollview</a></li>
                                <li class=""><a href="module_scrollview-base.html" title="scrollview-base">scrollview-base</a></li>
                                <li class=""><a href="module_scrollview-base-ie.html" title="scrollview-base-ie">scrollview-base-ie</a></li>
                                <li class=""><a href="module_scrollview-paginator.html" title="scrollview-paginator">scrollview-paginator</a></li>
                                <li class=""><a href="module_scrollview-scrollbars.html" title="scrollview-scrollbars">scrollview-scrollbars</a></li>
                                <li class=""><a href="module_shim-plugin.html" title="shim-plugin">shim-plugin</a></li>
                                <li class=""><a href="module_slider.html" title="slider">slider</a></li>
                                <li class=""><a href="module_sortable.html" title="sortable">sortable</a></li>
                                <li class=""><a href="module_stylesheet.html" title="stylesheet">stylesheet</a></li>
                                <li class=""><a href="module_substitute.html" title="substitute">substitute</a></li>
                                <li class=""><a href="module_swf.html" title="swf">swf</a></li>
                                <li class=""><a href="module_swfdetect.html" title="swfdetect">swfdetect</a></li>
                                <li class=""><a href="module_tabview.html" title="tabview">tabview</a></li>
                                <li class=""><a href="module_test.html" title="test">test</a></li>
                                <li class=""><a href="module_text.html" title="text">text</a></li>
                                <li class=""><a href="module_transition.html" title="transition">transition</a></li>
                                <li class=""><a href="module_uploader.html" title="uploader">uploader</a></li>
                                <li class=""><a href="module_widget.html" title="widget">widget</a></li>
                                <li class=""><a href="module_widget-anim.html" title="widget-anim">widget-anim</a></li>
                                <li class=""><a href="module_widget-base-ie.html" title="widget-base-ie">widget-base-ie</a></li>
                                <li class=""><a href="module_widget-child.html" title="widget-child">widget-child</a></li>
                                <li class=""><a href="module_widget-locale.html" title="widget-locale">widget-locale</a></li>
                                <li class=""><a href="module_widget-parent.html" title="widget-parent">widget-parent</a></li>
                                <li class=""><a href="module_widget-position.html" title="widget-position">widget-position</a></li>
                                <li class=""><a href="module_widget-position-align.html" title="widget-position-align">widget-position-align</a></li>
                                <li class=""><a href="module_widget-position-constrain.html" title="widget-position-constrain">widget-position-constrain</a></li>
                                <li class=""><a href="module_widget-stack.html" title="widget-stack">widget-stack</a></li>
                                <li class=""><a href="module_widget-stdmod.html" title="widget-stdmod">widget-stdmod</a></li>
                                <li class=""><a href="module_yql.html" title="yql">yql</a></li>
                                <li class=""><a href="module_yui.html" title="yui">yui</a></li>
                        </ul>
                    </div>

                    <div id="classList" class="module">
                        <h4>Classes</h4>
                        <ul class="content">
                                <li class=""><a href="Record.html" title="Record">Record</a></li>
                                <li class=""><a href="Recordset.html" title="Recordset">Recordset</a></li>
                                <li class=""><a href="RecordsetFilter.html" title="RecordsetFilter">RecordsetFilter</a></li>
                                <li class=""><a href="RecordsetIndexer.html" title="RecordsetIndexer">RecordsetIndexer</a></li>
                                <li class=""><a href="RecordsetSort.html" title="RecordsetSort">RecordsetSort</a></li>
                        </ul>
                    </div>

                    <div id="fileList" class="module">
                        <h4>Files</h4>
                        <ul class="content">        
                                <li class=""><a href="record.js.html" title="record.js">record.js</a></li>
                                <li class=""><a href="recordset-base.js.html" title="recordset-base.js">recordset-base.js</a></li>
                                <li class=""><a href="recordset-filter.js.html" title="recordset-filter.js">recordset-filter.js</a></li>
                                <li class="selected"><a href="recordset-indexer.js.html" title="recordset-indexer.js">recordset-indexer.js</a></li>
                                <li class=""><a href="recordset-sort.js.html" title="recordset-sort.js">recordset-sort.js</a></li>
                        </ul>
                    </div>





            </div>
		</div>
	</div>
	<div id="ft">
        <hr />
        Copyright &copy; 2011 Yahoo! Inc. All rights reserved.
	</div>
</div>
<script type="text/javascript">

    var ALL_YUI_PROPS = [{"access": "", "host": "Recordset", "name": "add", "url": "Recordset.html#method_add", "type": "method"}, {"access": "private", "host": "Recordset", "name": "_changeToRecord", "url": "Recordset.html#method__changeToRecord", "type": "method"}, {"access": "", "host": "RecordsetIndexer", "name": "createTable", "url": "RecordsetIndexer.html#method_createTable", "type": "method"}, {"access": "", "host": "Record", "name": "data", "url": "Record.html#config_data", "type": "config"}, {"access": "", "host": "Record", "name": "dataChange", "url": "Record.html#event_dataChange", "type": "event"}, {"access": "private", "host": "Recordset", "name": "_defAddFn", "url": "Recordset.html#method__defAddFn", "type": "method"}, {"access": "private", "host": "Recordset", "name": "_defAddHash", "url": "Recordset.html#method__defAddHash", "type": "method"}, {"access": "private", "host": "RecordsetIndexer", "name": "_defAddHash", "url": "RecordsetIndexer.html#method__defAddHash", "type": "method"}, {"access": "", "host": "RecordsetSort", "name": "defaultSorter", "url": "RecordsetSort.html#config_defaultSorter", "type": "config"}, {"access": "", "host": "RecordsetSort", "name": "defaultSorterChange", "url": "RecordsetSort.html#event_defaultSorterChange", "type": "event"}, {"access": "private", "host": "Recordset", "name": "_defEmptyFn", "url": "Recordset.html#method__defEmptyFn", "type": "method"}, {"access": "private", "host": "Recordset", "name": "_defEmptyHash", "url": "Recordset.html#method__defEmptyHash", "type": "method"}, {"access": "private", "host": "Recordset", "name": "_defRemoveFn", "url": "Recordset.html#method__defRemoveFn", "type": "method"}, {"access": "private", "host": "Recordset", "name": "_defRemoveHash", "url": "Recordset.html#method__defRemoveHash", "type": "method"}, {"access": "private", "host": "RecordsetIndexer", "name": "_defRemoveHash", "url": "RecordsetIndexer.html#method__defRemoveHash", "type": "method"}, {"access": "private", "host": "RecordsetSort", "name": "_defSortFn", "url": "RecordsetSort.html#method__defSortFn", "type": "method"}, {"access": "private", "host": "Recordset", "name": "_defUpdateFn", "url": "Recordset.html#method__defUpdateFn", "type": "method"}, {"access": "private", "host": "Recordset", "name": "_defUpdateHash", "url": "Recordset.html#method__defUpdateHash", "type": "method"}, {"access": "private", "host": "RecordsetIndexer", "name": "_defUpdateHash", "url": "RecordsetIndexer.html#method__defUpdateHash", "type": "method"}, {"access": "", "host": "Recordset", "name": "empty", "url": "Recordset.html#method_empty", "type": "method"}, {"access": "", "host": "RecordsetFilter", "name": "filter", "url": "RecordsetFilter.html#method_filter", "type": "method"}, {"access": "", "host": "RecordsetSort", "name": "flip", "url": "RecordsetSort.html#method_flip", "type": "method"}, {"access": "", "host": "Recordset", "name": "getLength", "url": "Recordset.html#method_getLength", "type": "method"}, {"access": "", "host": "Recordset", "name": "getRecord", "url": "Recordset.html#method_getRecord", "type": "method"}, {"access": "", "host": "Recordset", "name": "getRecordByIndex", "url": "Recordset.html#method_getRecordByIndex", "type": "method"}, {"access": "", "host": "Recordset", "name": "getRecordsByIndex", "url": "Recordset.html#method_getRecordsByIndex", "type": "method"}, {"access": "", "host": "RecordsetIndexer", "name": "getTable", "url": "RecordsetIndexer.html#method_getTable", "type": "method"}, {"access": "", "host": "Record", "name": "getValue", "url": "Record.html#method_getValue", "type": "method"}, {"access": "", "host": "Recordset", "name": "getValuesByKey", "url": "Recordset.html#method_getValuesByKey", "type": "method"}, {"access": "", "host": "RecordsetFilter", "name": "grep", "url": "RecordsetFilter.html#method_grep", "type": "method"}, {"access": "", "host": "RecordsetIndexer", "name": "hashTables", "url": "RecordsetIndexer.html#config_hashTables", "type": "config"}, {"access": "", "host": "RecordsetIndexer", "name": "hashTablesChange", "url": "RecordsetIndexer.html#event_hashTablesChange", "type": "event"}, {"access": "", "host": "Record", "name": "id", "url": "Record.html#config_id", "type": "config"}, {"access": "", "host": "Record", "name": "idChange", "url": "Record.html#event_idChange", "type": "event"}, {"access": "protected", "host": "Recordset", "name": "initializer", "url": "Recordset.html#method_initializer", "type": "method"}, {"access": "protected", "host": "RecordsetSort", "name": "initializer", "url": "RecordsetSort.html#method_initializer", "type": "method"}, {"access": "", "host": "Recordset", "name": "key", "url": "Recordset.html#config_key", "type": "config"}, {"access": "", "host": "Recordset", "name": "keyChange", "url": "Recordset.html#event_keyChange", "type": "event"}, {"access": "", "host": "RecordsetSort", "name": "lastSortProperties", "url": "RecordsetSort.html#config_lastSortProperties", "type": "config"}, {"access": "", "host": "RecordsetSort", "name": "lastSortPropertiesChange", "url": "RecordsetSort.html#event_lastSortPropertiesChange", "type": "event"}, {"access": "", "host": "Recordset", "name": "records", "url": "Recordset.html#config_records", "type": "config"}, {"access": "", "host": "Recordset", "name": "recordsChange", "url": "Recordset.html#event_recordsChange", "type": "event"}, {"access": "private", "host": "Recordset", "name": "_recordSetUpdated", "url": "Recordset.html#method__recordSetUpdated", "type": "method"}, {"access": "", "host": "RecordsetFilter", "name": "reject", "url": "RecordsetFilter.html#method_reject", "type": "method"}, {"access": "", "host": "Recordset", "name": "remove", "url": "Recordset.html#method_remove", "type": "method"}, {"access": "", "host": "RecordsetSort", "name": "resort", "url": "RecordsetSort.html#method_resort", "type": "method"}, {"access": "", "host": "RecordsetSort", "name": "reverse", "url": "RecordsetSort.html#method_reverse", "type": "method"}, {"access": "private", "host": "Recordset", "name": "_setHashTable", "url": "Recordset.html#method__setHashTable", "type": "method"}, {"access": "private", "host": "RecordsetIndexer", "name": "_setHashTable", "url": "RecordsetIndexer.html#method__setHashTable", "type": "method"}, {"access": "", "host": "RecordsetSort", "name": "sort", "url": "RecordsetSort.html#method_sort", "type": "method"}, {"access": "private", "host": "Recordset", "name": "_syncHashTable", "url": "Recordset.html#method__syncHashTable", "type": "method"}, {"access": "", "host": "Recordset", "name": "table", "url": "Recordset.html#config_table", "type": "config"}, {"access": "", "host": "Recordset", "name": "tableChange", "url": "Recordset.html#event_tableChange", "type": "event"}, {"access": "", "host": "Recordset", "name": "update", "url": "Recordset.html#method_update", "type": "method"}];
</script>
</body>
</html>
